package com.xnyzc.lhy.mis.service.worksheet;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xnyzc.lhy.common.entity.DiDiRv;
import com.xnyzc.lhy.mis.entity.param.worksheet.*;
import com.xnyzc.lhy.mis.entity.worksheet.OaSysWorksheet;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 工单信息表 服务类
 * </p>
 *
 * @author cuixiaojian
 * @since 2019-11-04
 */
@Service
public interface IOaSysWorksheetService extends IService<OaSysWorksheet> {
    /**
     * 11.查询工单通过合力工单id
     *
     * @param heliWorksheetId
     * @return
     */
    DiDiRv queryWorksheetByHeliWorksheetId(Long heliWorksheetId);

    /**
     * 12.查询工单通过DIDI工单id
     *
     * @param didiWorksheetId
     * @return
     */
    DiDiRv queryWorksheetByDiDiWorksheetId(Long didiWorksheetId);

    /**
     * 创建工单
     * @param oaSysWorksheet
     */
    void insertOaSysWorksheet(OaSysWorksheet oaSysWorksheet);

    /**
     * 更新工单
     * @param oaSysWorksheet
     */
    void updateDiDiWorkSheetId(OaSysWorksheet oaSysWorksheet);

    /**
     * 根据合力工单id获取工单信息
     * @param heliWorksheetId
     * @return
     */
    OaSysWorksheet queryWorksheetByHeliWorksheetId(String heliWorksheetId);
}
